import Vue, * as Lib from 'vue/dist/vue.esm'
import App from './App.vue'

// console.log(Lib)

Vue.config.productionTip = false

Vue.config.devtool = true

// import './elements/ZwCodemirror/ZwCodemirror'

import ELEMENT2 from 'element-ext'
Vue.use(ELEMENT2, { size: 'small', zIndex: 3000 });
globalThis.ELEMENT = ELEMENT2

import 'element-ui/lib/theme-chalk/index.css';

import  {service} from './req'
globalThis.Req = service


import '../../../static/initSim'
import  {initZPkgs} from '../../../src/main'
initZPkgs(Vue, function ({initZForm} = {}) {
  initZForm(Vue, Vue, {
    request: {
      async ['fetch']({apiConfig, type, ctx} = {}) {
        // console.log('fetch', apiConfig, ctx)

        return []
      },
    }
  })
}, {
  ELEMENT: ELEMENT2,
  Lib: Lib
})


new Vue({
  render: h => h(App),
}).$mount('#app')
